#ifndef PITA_AUDIOSINKS_AO_SINK_H_
#define PITA_AUDIOSINKS_AO_SINK_H_

#include <ao/ao.h>

#include "interfaces/audio_sink_interface.h"

namespace pita
{

	class AOSink : public AudioSinkInterface
	{
		public:
			AOSink();
			~AOSink();
			void play(const DataChunk&);

		private:
			int driver_;
			ao_device* device_;

			struct Shared;
			static Shared* shared_;
			static unsigned int share_count_;
	};

}

#endif
